using _RobotInspection.Models;
using _RobotInspection.ReApiHelp;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using _RobotInspection.DTO;
using _RobotInspection.Entities;
using System.Linq.Expressions;

namespace _RobotInspection.Interfaces
{
    /// <summary>
    /// 通用仓储接口
    /// </summary>
    public interface IRepository
    {
        /*
        //user相关
        Task<List<users>> GetUsersAsync();
        Task<List<users>> GetUserWithExpressionAsync(Expression<Func<users, bool>> expression);
        Task<users> InsertUserAsync(users user);
        Task<users> UpdateUserAsync(users user);
        Task<users> DeleteUserAsync(long Id);
        Task<users> DeleteUserAsync(string userName);
        UserDto ConvertUserToUserDto(users user);
        users ConvertUserDtoToUser(UserDto userDto);

        //equipment相关
        Task<List<equipment>> GetEquipmentsAsync();
        Task<List<equipment>> GetEquipmentWithExpressionAsync(Expression<Func<equipment, bool>> expression);


        //Task<ApiResponse<List<DataManagement>>> SelectData(SelectData selectData);
        */
    }


}